#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <math.h>

static int arr[100000000] = { 0 };

int* printfNumber(int n)
{
	int i = 0;
	int k = (int)pow(10, n) - 1;
	for (i = 1; i <= k; i++)
	{
		arr[i - 1] = i;
	}
	return arr;
}

int main()
{
	int n, i;
	scanf("%d", &n);
	int p = (int)pow(10, n) - 1;
	printfNumber(n);
	for (i = 0; i < p; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}

